import request from '@/utils/request'

// 查询药品列表
export function listDrug(query) {
  return request({
    url: '/treat/newvisit/listdrug',
    method: 'get',
    params: query
  })
}

// 根据挂号单id查询病人信息
export function getRegisterInfo(registerID) {
  return request({
    url: '/treat/newvisit/' + registerID,
    method: 'get'
  })
}

export function listRegister(registerStatus) {
  return request({
    url: '/treat/register/' + registerStatus,
    method: 'get'
  })
}

export function modifyRegisterBystatus(query) {
  return request({
    url: '/doctor/newvisit/modifyRegisterIsStatus',
    method: 'get',
    params: query
  })
}
export function addCase(query) {
  return request({
    url: '/treat/newvisit/addPatientHistory',
    method: 'post',
    params: query
  })
}

export function listbingli(query) {
  return request({
    url: '/treat/newvisit/patienthistory',
    method: 'get',
    params: query
  })
}
export function addjiuzhen(query,sss) {
  const data = {
    query,
    sss
  }
  return request({
    url: '/doctor/newvisit/addjiuzhen',
    method: 'post',
    data: data
  })
}

